package org.permission.dao;

import org.permission.pojo.mechanism;

import java.util.List;

public interface mechanismDao {

    public void add(mechanism mechanism);

    public void delete(Integer id);

    public void batchDelete(Integer[] ids);

    public void update(mechanism mechanism);

    public mechanism getById(Integer id);

    public List<mechanism> getAll();

    public List<mechanism> getByName();

}
